package com.dsh.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients(basePackages = "com.dsh.gulimall.member.feign")
//服务注册与发现
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}

/**
 *
 * 1 想要调用远程的服务
 *   引入open-feign
 *    编写一个接口，告诉springCloud这个接口需要远程服务
 *    申明每一个方法的全路径
 */
